package com.twu.biblioteca;

public class Book
{
    String bookName;
    String author;
    String genre;
    int numberOfCopies;
    Book(String bookName, String author, String genre, int numberOfCopies)
    {
        this.bookName=bookName;
        this.author=author;
        this.genre=genre;
        this.numberOfCopies=numberOfCopies;
    }

    public String getBookName()
    {
                 return bookName;
    }

    public String getAuthor()
    {
        return author;
    }

    public String getGenre()
    {
        return genre;
    }

    public int getNumberOfCopies()
    {
        return numberOfCopies;
    }

    public int updateNumberOfCopies()
    {
        numberOfCopies--;
        return numberOfCopies;
    }



}

